package cn.phecda.boot.data.test.application;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * <p> JPA, Mybatis配置 </p>
 *
 * @author : wanpinwei
 */
@EnableAsync
@Profile("jpa-mybatis")
@Configuration
@ComponentScan({"cn.phecda.boot.data.test.jpa",
        "cn.phecda.boot.data.test.mybatis"})
@EntityScan("cn.phecda.boot.data.test.jpa")
@EnableJpaRepositories("cn.phecda.boot.data.test.jpa")
@MapperScan("cn.phecda.boot.data.test.mybatis")
public class JpaMybatisConfiguration {

}
